﻿@model IEnumerable<VideoCache.Server.Model.SiteChannelInfo>
@{
    ViewBag.Title = "频道管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<h2 class="pageTitle">@ViewBag.Title</h2>
<p>
    <a href="@Url.Action("Create")" class="lbtn">新建</a>
</p>
<table class="ten-table" style="width: 100%">
<thead>
    <tr>
        <th style="width:10px;text-align:center"><input type="checkbox" class="selectAll" group="chk" /></th>
        <th style="width:100px">频道名称</th>
        <th style="width:100px; text-align:center">网站</th>
        <th style="width:200px">域名</th>
        <th>网址模板</th>
        <th style="width:200px">程序集</th>
        <th style="width:50px; text-align:center">启用</th>
        <th style="width:220px; text-align:center"></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model)
{
    <tr>
        <th style="text-align:center"><input type="checkbox" group="chk" value="@item.Id" /></th>
        <td>@Html.DisplayFor(modelItem => item.Name)</td>
        <td style="text-align:center">@Html.DisplayFor(modelItem => item.SiteId)</td>
        <td>@Html.DisplayFor(modelItem => item.Domain)</td>
        <td>@Html.DisplayFor(modelItem => item.UrlPattern)</td>
        <td>@Html.DisplayFor(modelItem => item.Assembly)</td>
        <td style="text-align:center">@Html.DisplayFor(modelItem => item.Enable)</td>
        <td style="text-align:center">
            <a href="@Url.Action("Edit", new { id = item.Id })">编辑</a>
            <a href="@Url.Action("Delete", new { id = item.Id })" class="delete">编辑</a>
        </td>
    </tr>
}
</tbody>
</table>